<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"
	contentType="text/html; charset=utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%
String username = null;
String li = "";
Object o = session.getAttribute("username");
if(o != null) {
	username = o.toString();
	li = "<img onclick=\"location.href='" + basePath + "user/user_logout'\" src=\"" + basePath + "images/logout.png\" style=\"height: 24px; cursor:pointer;\"/>";
} else {
	username = "登陆";
}
%>
<!--header-->
<div class="header">
	<div class="container">
		<div class="header-left">
			<a href="<%=basePath%>index.jsp"><img src="<%=basePath%>images/logo.png" alt=""/></a>
		</div>
		<div class="header-right">
			<span class="menu">MENU</span>
					<ul id="menu_ul" class="nav1">
						<li><a href="<%=basePath%>index.jsp">首页</a></li>
						<li><a href="<%=basePath%>index.jsp">简介</a></li>	
						<li><a href="<%=basePath%>index.jsp">关于我们</a></li>
						<li><a href="<%=basePath%>document.jsp">使用文档</a></li>
						<li><a id="menu_login" href="<%=basePath%>user/user_main"><%=username %></a><%=li %></li>
					</ul>
				<!-- script for menu -->
					<script> 
						$( "span.menu" ).click(function() {
						$( "ul.nav1" ).slideToggle( 300, function() {
						 // Animation complete.
						});
						});
					</script>
				<!-- //script for menu -->
		</div>
		<div class="clearfix"></div>
	</div>
</div>